package test.variable;

public class variableDemo1
{
    public static void main(String[] args) {
        //认识变量
        printliteral();
    }
    //定义一个方法，来学习变量的定义
    public static void printliteral() {
        //定义变量
        int a;
        //赋值
        a = 10;
        //输出
        System.out.println(a);

        System.out.println("=======================");
        char ch = 'A';
        System.out.println(ch + 1);


        System.out.println("=======================");
        int i = 0b01100001;
        System.out.println(i);
        int j = 0x00FA;
        System.out.println(j);

        System.out.println("=======================");
        //
        int i1 = 0B01100001;//97
        System.out.println(i1);
        System.out.println("=======================");

        int i4 = 0B001100001;
        System.out.println(i4);
        int i2 = 0141;//八进制 //001011001
        System.out.println(i2);

        int i3 = 0XFA;//11111010
        System.out.println(i3);
    }

}
